 package com.nondo.dean.product.model;

import com.nondo.dean.common.tool.BeanUtils;
import com.nondo.dean.product.domain.ProductType;

 public class ProductTypeBean {
     private Integer id; // 类型ID

     private String code; // 类型编码

     private String name; // 类型名称

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static ProductTypeBean covertToBean(ProductType productType) {
        ProductTypeBean productTypeBean = new ProductTypeBean();
        BeanUtils.copy(productType, productTypeBean);
        return productTypeBean;
    }
     
     
}
